﻿using UnityEngine;

namespace com.yoozoo.gta.Extension
{
    public static class TextureEx
    {
    
        public static Sprite ToSprite(this Texture2D texture)
        {
            return Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
        }
    }
}

